import React from 'react';
import { StatusBar, Platform } from 'react-native';
import { useTheme } from '../context/ThemeContext';

const StatusBarManager: React.FC = () => {
  const { isDark } = useTheme();

  return (
    <StatusBar
      barStyle={isDark ? 'light-content' : 'dark-content'}
      backgroundColor={isDark ? '#0d1117' : '#ffffff'}
      translucent={false}
    />
  );
};

export default StatusBarManager;